home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / lists / mint / l_1199 / 1153 < prev    next >
Encoding:
Internet Message Format  |  1994-08-27  |  2.1 KB

  1. From: hyc@hanauma.jpl.nasa.gov (Howard Chu)
  2. From: "Nicholas S Castellano" <entropy@terminator.rs.itd.umich.edu>
  3. Date: Sun, 6 Mar 94 02:52:34 PST
  4. From: hyc@hanauma.jpl.nasa.gov (Howard Chu)
  5. Message-Id: <9403061052.AA23538@hanauma.jpl.nasa.gov>
  6. To: entropy@terminator.rs.itd.umich.edu, miff@asharak.apana.org.au
  7. Subject: Re:  another 1.10 job control bug?
  8.  
  9. From: "Nicholas S Castellano" <entropy@terminator.rs.itd.umich.edu>
  10. >From: miff@asharak.apana.org.au (michael smith)
  11. >In <199403042253.RAA07033@terminator.rs.itd.umich.edu> you wrote :
  12. >>My only problem with it as a permanent solution is that a process
  13. >>hanging around in the foregroung process group could prevent the
  14. >>controlling tty from ever being released, causing the
  15. >>you-only-get-one-login-per-device problem again.  One way this could
  16. >>happen is if an asynchronous process is spawned from a
  17. >>non-job-control-aware shell (e.g. one that knows nothing about process
  18. >>groups).  I guess this isn't a big enough problem to be concerned
  19. >>about at the moment, unless there are other ways this could happen.
  20. >
  21. >Hmm, and it shouldn't be a problem anyway - when DCD drops/the TCP link is
  22. >closed/or any other 'true' logout action occurs, init should terminate 
  23. >all processes that claim to have that line as a controlling tty.
  24. >
  25. >I don't think init has enough information to do this.  Under MiNT this
  26. >should be under the kernel's control.  And even if the kernel did
  27. >handle this, it would only apply if the CLOCAL bit were not set in the
  28. >tty flags, and would only have the desired effect if the process
  29. >doesn't ignore SIGHUP (for instance, users should be able to start a
  30. >daemon interactively from the modem1 tty using a non-job-control aware
  31. >shell, then log out, and expect the port not to get locked up.)
  32.  
  33. Hm, I can't remember how BSD invalidates the tty descriptor of background
  34. jobs. Certainly init should reset the process group of the tty when the
  35. child that was spawned on it terminates. That in itself should prevent
  36. any remaining jobs from writing, eh? But there must be more to it. Yah,
  37. SunOS uses sessions *now*, but what was before them? (Dang, can't find
  38. my 4.3 internals book right now...)
  39.